/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 物业电梯表实体类
 *
 * @author ysq
 * @since 2022-05-27
 */
@Data
@TableName("blade_estate_elevator")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "EstateElevator对象", description = "物业电梯表")
public class EstateElevator extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 物业项目id
	*/
	@ApiModelProperty(value = "物业项目id")
	private Long estateBuildingId;

	/**
	* 电梯id
	*/
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;

	/**
	* 维保业务生效状态 0-未开通, 1-待生效, 2-生效中, 3-已失效
	*/
	@ApiModelProperty(value = "维保业务生效状态 0-未开通, 1-待生效, 2-生效中, 3-已失效")
	private Integer maintainStatus;

	/**
	* 维保业务生效开始时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "维保业务生效开始时间")
	@TableField(fill = FieldFill.UPDATE)
	private Date maintainStartTime;

	/**
	* 维保业务生效结束时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "维保业务生效结束时间")
	@TableField(fill = FieldFill.UPDATE)
	private Date maintainEndTime;

	/**
	* 维保业务生效人id
	*/
	@ApiModelProperty(value = "维保业务生效人id")
	private Long maintainOperatorId;

	/**
	* 维保业务生效人名称
	*/
	@ApiModelProperty(value = "维保业务生效人名称")
	private String maintainOperatorName;

	/**
	* 维保业务生效时间
	*/
	@ApiModelProperty(value = "维保业务生效时间")
	private Date maintainOperateTime;

	/**
	* 梯联网生效状态 0-未开通, 1-待生效, 2-生效中, 3-已失效
	*/
	@ApiModelProperty(value = "梯联网生效状态 0-未开通, 1-待生效, 2-生效中, 3-已失效")
	private Integer tlwStatus;

	/**
	* 梯联网生效开始时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "梯联网生效开始时间")
	@TableField(fill = FieldFill.UPDATE)
	private Date tlwStartTime;

	/**
	* 梯联网生效结束时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "梯联网生效结束时间")
	@TableField(fill = FieldFill.UPDATE)
	private Date tlwEndTime;

	/**
	* 梯联网生效人id
	*/
	@ApiModelProperty(value = "梯联网生效人id")
	private Long tlwOperatorId;

	/**
	* 梯联网生效人名称
	*/
	@ApiModelProperty(value = "梯联网生效人名称")
	private String tlwOperatorName;

	/**
	* 梯联网生效时间
	*/
	@ApiModelProperty(value = "梯联网生效时间")
	private Date tlwOperateTime;


}
